Proxy Design Pattern in c